﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;
using Controller;

namespace Facade
{
    public class RGMTypeFacade
    {
        public string Save(RGMType RGMTypes)
        {
            RGMTypeController cont = new RGMTypeController();
            return cont.Save(RGMTypes);
        }

        public string Delete(RGMType RGMTypes)
        {
            RGMTypeController cont = new RGMTypeController();
            return cont.Delete(RGMTypes);
        }

        public string BeforeDelete(RGMType RGMTypes)
        {
            RGMTypeController cont = new RGMTypeController();
            return cont.BeforeDelete(RGMTypes);
        }

        public string TotalGrid(string sSearch, int BusinessGroupID)
        {
            RGMTypeController cont = new RGMTypeController();
            return cont.TotalGrid(sSearch, BusinessGroupID);
        }

        public IList<RGMType> GetAll(string sSearch, int PageNumber, int DataLength, string SortCol, string SortDirection, out int TotalData, int BusinessGroupID)
        {
            IList<RGMType> RGMTypes = new List<RGMType>();
            RGMTypeController cont = new RGMTypeController();
            RGMTypes = cont.GetAll(sSearch, PageNumber, DataLength, SortCol, SortDirection, out TotalData, BusinessGroupID);
            return RGMTypes;
        }

        public RGMType GetRGMTypeByID(int ID)
        {
            RGMType RGMTypes = new RGMType();
            RGMTypeController cont = new RGMTypeController();
            RGMTypes = cont.GetRGMTypeByID(ID);
            return RGMTypes;
        }
    }
}